﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 测试
{
    internal class Animal
    {
        private int _name;
        private int _age;

        public Animal() { }
        public Animal(int name, int age)
        {
            _name = name;
            _age = age;
        }
        public virtual void Eat()
        {
            Console.WriteLine(_name + "吃东西");
        }
    }
}
